package com.weido.aspectj;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAspect {
    
    @Around("execution(* com.weido.domain.User.*(..))")
    public Object  arround(ProceedingJoinPoint point) throws Throwable {
        System.out.println("欢迎进入");
        Object obj = point.proceed();
        System.out.println("欢迎再来");
        return obj;
    }
    
}
